package homework.lottey;

import java.util.Random;
import java.util.Set;
import java.util.TreeSet;

public class Lottery {

    public static void main(String[] args) {

        Set<Integer> list = new TreeSet<>();

        Random random = new Random();

        while (list.size()<7){
            int red = random.nextInt(33)+1;
            list.add(red);
        }

        int blue = random.nextInt(16)+1;
        System.out.println("红球：");
        for (int a:list) {
            System.out.print(a+"\t");
        }
        System.out.println();
        System.out.println("篮球：");
        System.out.println(blue);

    }
}
